package com.feige.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.util.Arrays;

/**
 * @author feige
 */
@ApiModel(value="RoleFormDto对象")
public class RoleFormDto {

    @ApiModelProperty(value = "ID")
    private Long id;

    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @NotBlank(message = "备注不能为空")
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "权限数组")
    private Long[] menuIds;


    public RoleFormDto(Long id, String roleName, Integer status, String remark, Long[] menuIds) {
        this.id = id;
        this.roleName = roleName;
        this.status = status;
        this.remark = remark;
        this.menuIds = menuIds;
    }

    public RoleFormDto() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long[] getMenuIds() {
        return menuIds;
    }

    public void setMenuIds(Long[] menuIds) {
        this.menuIds = menuIds;
    }

    @Override
    public String toString() {
        return "RoleFormVo{" +
                "id='" + id + '\'' +
                ", roleName='" + roleName + '\'' +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                ", menuIds=" + Arrays.toString(menuIds) +
                '}';
    }
}

